package com.woniuxy.demo.controller;


import com.woniuxy.life.core.api.CommonResult;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 商品价格单位计算类型表 前端控制器
 * </p>
 *
 * @author woniuxy
 * @since 2020-09-23
 */
@RestController
@RequestMapping("/demo")
public class GoodsPayTypeController {

    @GetMapping("/{id}")
    public CommonResult test(@PathVariable("id") int id){
        return CommonResult.success("hello world:"+id);
    }

    @GetMapping("/aaa/{id}")
    public CommonResult test2(@PathVariable("id") int id){
        return CommonResult.success("hello world22222:"+id);
    }
}
